<?xml version="1.0" encoding="ISO-8859-1" ?>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@include file="../../context.jsp"%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Edit Annual Sector Data</title>
<%@include file="../common_Admin_imports.jsp"%>
<%@include file="../common_loding_imports.jsp"%>
<script type="text/javascript">
	$(document).ready(function() {
		$("#datepicker").datepicker({
			dateFormat : "yy-mm-dd"
		});
	});
</script>
</head>
<body>
	<div class="main_wrapper">
		<div class="header_wrapper">
			<div class="container-fluid">
				<div class="header_inner_wrapper clearfix">
					<div class="row-fluid">
						<div class="header_left span4">Annual Sector Data Setup</div>
						<jsp:include page="../common_link.jsp" />
					</div>
				</div>
				<div class="content_wrapper">
					<div class="container-fluid">
						<div class="row-fluid">
							<div class="input_box_wrapper">
								<div class="input_box_wrapper_text_aery">
									<div class="span6">
										<form:form method="POST" commandName="annualSectorData"
											action="${pageContext.request.contextPath}/admin/annualsectordata/edit/${annualSectorData.id}.html"
											class="form-horizontal">
											<div class="input_box_wrapper_left span6">
												<div>${message}</div>
												<div class="control-group">
													<label class="control-label" for="inputEmail">Sector
														:</label>
													<div class="controls">
														<form:select itemValue="id" itemLabel="name"
															path="sector.id" items="${sectorsMap}">
														</form:select>
													</div>
												</div>
												<div class="control-group">
													<label class="control-label" for="inputEmail">Date
														:</label>
													<div class="controls">
														<form:hidden path="date" />
														<label class="date_field" for="inputEmail"><fmt:formatDate
																pattern="${dateFormat}" value="${annualSectorData.date}" /></label>
													</div>
												</div>
												<div class="control-group">
													<label class="control-label" for="inputEmail">Closing
														Value :</label>
													<div class="controls">
														<form:input path="closingValue" />
													</div>
													<div class="controls">
														<form:errors path="closingValue" cssClass="error"></form:errors>
													</div>
												</div>
												<!--  -->
												<div class="control-group">
													<label class="control-label" for="inputEmail">Open
														:</label>
													<div class="controls">
														<form:input path="open" />
													</div>
													<div class="controls">
														<form:errors path="open" cssClass="error"></form:errors>
													</div>
												</div>
												<div class="control-group">
													<label class="control-label" for="inputEmail">High
														:</label>
													<div class="controls">
														<form:input path="high" />
													</div>
													<div class="controls">
														<form:errors path="high" cssClass="error"></form:errors>
													</div>
												</div>
												<input type="submit" value="Save"
													class="btn btn-inverse save" />
												<!--  -->
											</div>
											<div class="input_box_wrapper_right span6">
												<div class="control-group">
													<label class="control-label" for="inputEmail">no Of
														Trades :</label>
													<div class="controls">
														<form:input path="noOfTrades" />
													</div>
													<div class="controls">
														<form:errors path="noOfTrades" cssClass="error"></form:errors>
													</div>
												</div>
												<div class="control-group">
													<label class="control-label" for="inputEmail">Volume
														:</label>
													<div class="controls">
														<form:input path="volume" />
													</div>
													<div class="controls">
														<form:errors path="volume" cssClass="error"></form:errors>
													</div>
												</div>
												<div class="control-group">
													<label class="control-label" for="inputEmail">Turnover
														:</label>
													<div class="controls">
														<form:input path="turnOver" />
													</div>
													<div class="controls">
														<form:errors path="turnOver" cssClass="error"></form:errors>
													</div>
												</div>
												<!--  -->
												<div class="control-group">
													<label class="control-label" for="inputEmail">Low :</label>
													<div class="controls">
														<form:input path="low" />
													</div>
													<div class="controls">
														<form:errors path="low" cssClass="error"></form:errors>
													</div>
												</div>
											</div>
											<form:hidden path="id" />
										</form:form>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>